package com.tabjin.rfidsocket.service.access;

import com.tabjin.rfidsocket.common.utils.PagedGridResult;
import com.tabjin.rfidsocket.pojo.ArchCard;
import com.tabjin.rfidsocket.pojo.bo.access.ArchCardBO;
import com.tabjin.rfidsocket.pojo.bo.access.ArchIssueCardBO;

import java.util.List;

public interface ArchCardService {
    void add(ArchIssueCardBO archIssueCardBO);

    void delete(Integer cardId);

    void delete(List<Integer> cardIdList);

    ArchCard update(ArchCardBO archCardBO);

    void updateCardStatus(Integer cardId, Integer status);

    boolean hasCardByCardCode(String cardCode);

    void lock(Integer cardId, Integer lockStatus);

    PagedGridResult getAll(Integer page, Integer pageSize);

    ArchCard getCardByCardId(Integer cardId);

    List<ArchCard> getCardsByCardIds(List<Integer> cardIdList);

    List<ArchCard> getCardsByBuildingId(Integer buildingId);


}
